//
//  FoundViewController.m
//  FVQuickMessage
//
//  Created by dllo on 16/8/9.
//  Copyright © 2016年 zty. All rights reserved.
//

#import "FoundViewController.h"
#import "FoundView.h"
#import "MapViewController.h"
#import "ShakeViewController.h"
#import "SmileViewController.h"

@interface FoundViewController ()

@end

@implementation FoundViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.navigationItem.title = @"发现";
    
    [self creatFoundTableView];
}

- (void) creatFoundTableView {
    
    
    
    FoundView *foundTableView = [[FoundView alloc]initWithFrame:self.view.bounds];
    
    void (^block)() = ^{
        SmileViewController *smileVC = [[SmileViewController alloc]init];
        [self.navigationController pushViewController:smileVC animated:YES];
        
    };
    foundTableView.block = block;
    
    void (^map)() = ^{
        MapViewController *mapVC = [[MapViewController alloc]init];
        [self.navigationController pushViewController:mapVC animated:YES];
        
    };
    foundTableView.map = map;

    
    
    
    
    [self.view addSubview:foundTableView];
}


@end
